<?php
use think\Route;
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
return [

    '[api]'     => [
        'register' => ['user/register', ['method' => 'post|options']],
        'login'    => ['user/login', ['method' => 'post|options']],
        'wxlogin'    => ['wx/login', ['method' => 'post|options']],
        'setpassword'    => ['user/setpassword', ['method' => 'post|options']],
        'newpassword' =>  ['user/newpassword', ['method' => 'post|options']],
        'sendsms' => ['mobile/sendsms', ['method' => 'post|options']],
        'uploads' => ['user/uploads' ,['method' => 'post|options']], // uploads
        'publish' => ['user/publish', ['method' => 'get|options']],  // 用户是否有发布权限
        'tinywindow'=> ['user/tinyWindow', ['method' => 'get|options']],
        'feedback'=>['user/feedBack', ['method' => 'post|options']],

        'collectbehavior' => ['user/collectBehavior', ['method' => 'get|options']],  // 收藏
        'cancelcollection' => ['user/cancelCollection', ['method' => 'get|options']], // 取消收藏

        'city' => ['topButton/city' ,['method' => 'get|options']], // top  城市
        'industrychain' => ['topButton/industryChain' ,['method' => 'get|options']], // top 产业链
        'industryclassify' => ['topButton/industryClassify' ,['method' => 'get|options']], // top 行业类型
        'policytype' => ['topButton/policyType' ,['method' => 'get|options']], // top 政策形势
        'projecttop' => ['topButton/projectTop' ,['method' => 'get|options']], // top 项目库
        'chain_more_re' => ['topButton/chainMorere' ,['method' => 'get|options']], // 产业链节点下的企业有无
        'chain_drop_box' => ['topButton/chainDropBox' ,['method' => 'get|options']], // 产业链下拉框
        'chain_city_map' => ['topButton/chainCityMap' ,['method' => 'get|options']], // 产业链地图
        'important_city' => ['topButton/importantCity' ,['method' => 'get|options']], // 重点城市
        'chain_rate'=>['topButton/chainRate' ,['method' => 'get|options']], // 新增产业占比
        'mistake_type'=>['topButton/mistakeType' ,['method' => 'get|options']], // 纠错类型下拉
        'correct_mistake'=>['topButton/correctMistake' ,['method' => 'post|options']], // 纠错提交
        'common'=>['topButton/common' ,['method' => 'get|options']],

        'industrycategory' => ['industry/industryCategory' ,['method' => 'get|options']], // 产业分类
        'industrynews' => ['industry/industryNews' ,['method' => 'get|options']],         // 产业资讯列表
        'industrydetail' => ['industry/industryDetail' ,['method' => 'get|options']],     // 产业资讯详情

        'policylibrarylist' => ['policy/policyLibraryList' ,['method' => 'get|options']], // 政策库新闻list1
        'policylibrarydetail' => ['policy/policyLibraryDetail' ,['method' => 'get|options']], // 政策库detai
        'getcitypolicy' => ['policy/getCityPolicy' ,['method' => 'get|options']], // 获取五大城市的政策列表
        'citydiffpolicy' => ['policy/cityDiffPolicy' ,['method' => 'get|options']], // 政策对比1


        'parklist' => ['park/parkList' ,['method' => 'get|options']],  // 园区列表
        'parkdetail' => ['park/parkDetail' ,['method' => 'get|options']], // 园区详情

        'companylist' => ['company/companyList' ,['method' => 'get|options']],  // 企业列表
        'companydetail' => ['company/companyDetail' ,['method' => 'get|options']],  // 企业详情
        'push_company' => ['company/pushCompany' ,['method' => 'get|options']], // 推荐企业
        'companycommentlist' => ['company/companyCommentList' ,['method' => 'get|options']],  // 企业评论列表
        'companycommentadd' => ['company/companyCommentAdd' ,['method' => 'post|options']],  // 企业增加评论

        'investlist' => ['invest/investList' ,['method' => 'get|options']],  // 投融列表
        'investdetail' => ['invest/investDetail' ,['method' => 'get|options']],  // 投融详情

        'tanklist' => ['invest/tankList' ,['method' => 'get|options']],  // 智库列表
        'tankdetail' => ['invest/tankDetail' ,['method' => 'get|options']],  // 智库详情

        // CRM
        'crmpushproject' => ['crmProject/crmPushProject' ,['method' => 'get|options']], //CRM 推送项目
        'crmpushprojectdetail' => ['crmProject/crmPushProjectDetail' ,['method' => 'get|options']], //CRM 推送项目
        'crmpushprojectadd' => ['crmProject/crmPushProjectAdd' ,['method' => 'post|options']], // CRM提供接口添加推送项目
        'crmcollectlist' => ['crmCollect/CrmCollectList' ,['method' => 'get|options']], //CRM 我的收藏
        'crmlistproject' => ['crmProject/listProject' ,['method' => 'get|options']],   //CRM 项目列表
        'crmaddproject' => ['crmProject/addProject' ,['method' => 'post|options']],     //CRM 添加项目
        'crmeditproject' => ['crmProject/editProject' ,['method' => 'post|options']],   //CRM 编辑项目
        'crmdetailproject' => ['crmProject/detailProject' ,['method' => 'get|options']],   //CRM 项目详情页
        'crmlogproject' => ['crmProject/logProject' ,['method' => 'get|options']],   //CRM 项目日志list
        'crmmonitorproject' => ['crmProject/monitorProject' ,['method' => 'get|options']],   //CRM 项目监控和取消监控
        'crmdelproject' => ['crmProject/delProject' ,['method' => 'get|options']],   //CRM 项目软删除
        'monitor_commit'=>['crmProject/monitorCommit' ,['method' => 'post|options']],  // 项目监控提交审核资料
        'inside_monitor'=>['crmProject/insideMonitor',['method' => 'post|options']], //企业详情内页和园区内页的监控

        'crmdepartment' => ['crmProject/crmDepartment' ,['method' => 'get|options']],  // CRM 科室列表
        'crmallproject' => ['crmProject/allProject' ,['method' => 'get|options']], // CRM 全部项目
        'crmmemberlist' => ['crmProject/memberList' ,['method' => 'get|options']], // CRM 成员列表

        'crmprolibadd' => ['crmProject/projectLibAdd' ,['method' => 'post|options']], // CRM 首页项目add
        'crmproliblist' => ['crmProject/projectLibList' ,['method' => 'get|options']], // CRM 首页项目list
        'crmprolibdetail' => ['crmProject/projectLibDetail' ,['method' => 'get|options']], // CRM 首页项目detail
        'crmprolibedit' => ['crmProject/projectLibEdit' ,['method' => 'post|options']], // CRM 首页项目edit
        'crmprolibdel' => ['crmProject/projectLibDel' ,['method' => 'get|options']], // CRM 首页项目del

        'crmnewsadd' => ['crmProject/newsAdd' ,['method' => 'post|options']], // CRM 新闻资讯add
        'crmnewslist' => ['crmProject/newsList' ,['method' => 'get|options']], // CRM 新闻资讯list
        'crmnewsdetail' => ['crmProject/newsDetail' ,['method' => 'get|options']], // CRM 新闻资讯detail
        'crmnewsedit' => ['crmProject/newsEdit' ,['method' => 'post|options']], // CRM 新闻资讯edit
        'crmnewsdel' => ['crmProject/newsDel' ,['method' => 'get|options']], // CRM 新闻资讯del
        'crmcompanyanalyze' => ['crmProject/companyAnalyze' ,['method' => 'post|options']], // CRM 企业深度分析
        'analyzelist' => ['crmProject/analyzeList' ,['method' => 'get|options']], // CRM 企业深度分析

        'indexnewslist' => ['crmProject/indexNewsList' ,['method' => 'get|options']], // CRM 在首页展示新闻资讯list
        'indexnewsdetail' => ['crmProject/indexNewsDetail' ,['method' => 'get|options']], // CRM 在首页展示新闻资讯detail
        'indexprojectlist' => ['crmProject/indexProjectList' ,['method' => 'get|options']], // CRM 在首页展示项目list
        'indexprojectdetail' => ['crmProject/indexProjectDetail' ,['method' => 'get|options']], // CRM 在首页展示项目detail

        // CRM菜单权限
        'crm_menu_list' => ['crmProject/crmMenuList' ,['method' => 'get|options']],
        'crm_menu_select' => ['crmProject/crmMenuSelect' ,['method' => 'get|options']],
        'crm_menu_user' => ['crmProject/crmMenuUser' ,['method' => 'get|options']],
        'crm_dpt_position' => ['crmProject/crmDptPosition' ,['method' => 'get|options']],
        'crm_user_detail' => ['crmProject/crmUserDetail' ,['method' => 'get|options']],
        'rolo_user_list' => ['crmProject/roloUserList' ,['method' => 'get|options']],
        'crm_add_rolo' => ['crmProject/crmAddRolo' ,['method' => 'post|options']],
        'crm_rolo_detail' => ['crmProject/crmRoloDetail' ,['method' => 'get|options']],
        'crm_del_user'=>['crmProject/crmDelUser' ,['method' => 'get|options']],
        'crm_del_rolo'=>['crmProject/crmDelRolo' ,['method' => 'get|options']],

        //组织架构
        'crm_organ_add'=>['organization/dptAdd' ,['method' => 'get|options']],
        'crm_organ_list'=>['organization/dptList' ,['method' => 'get|options']],
        'crm_organ_detail'=>['organization/dptDetail' ,['method' => 'get|options']],
        'crm_organ_edit'=>['organization/dptEdit' ,['method' => 'get|options']],
        'crm_organ_del'=>['organization/dptDel' ,['method' => 'get|options']],

        'crm_position_add'=>['organization/posAdd' ,['method' => 'get|options']],
        'crm_position_list'=>['organization/posList' ,['method' => 'get|options']],
        'crm_position_detail'=>['organization/posDetail' ,['method' => 'get|options']],
        'crm_position_edit'=>['organization/posEdit' ,['method' => 'get|options']],
        'crm_position_del'=>['organization/posDel' ,['method' => 'get|options']],

        //移动端api
        'app_push_list'=>['appIndex/pushList' ,['method' => 'get|options']],

        'test' => ['test/test' ,['method' => 'post|get|options']],  // test11  rolo_user_list
        'test2' => ['test/test2' ,['method' => 'post|get|options']],  // test11  rolo_user_list
    ],
];